//
//  YFDiscoverViewController.swift
//  YFSwiftWeibo
//
//  Created by tsaievan on 2017/8/24.
//  Copyright © 2017年 tsaievan. All rights reserved.
//

import UIKit

class YFDiscoverViewController: YFBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //MARK: -测试代码, 当用户点击发现tabBar的时候就会清空token
        ///< 然后那边代码就会发送通知, 提示用户再次登录
//        YFNetworkManager.shared.tokenModel.access_token = nil
        
        //MARK: -测试代码, 当用户点击发现tabBar的时候就改变token
        ///< 然后那边代码就会发送通知, 提示用户重新登录
        YFNetworkManager.shared.tokenModel.access_token = "bad token"
        print("修改了token")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
